package com.houtai.bean.dto.campus;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class CampusLogin {

    /**
     * 验证码
     */
    @NotNull(message = "验证码不能为空")
    private String img_code;
    /**
     * session中验证码
     */
    private String session_code;

    @NotEmpty(message = "账户不能为空")
    @Length(max = 20, message = "账户最多20个字符")
    @ApiModelProperty(value="账户", name="campus_account")
    private String campus_account;
    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value="密码", name="campus_psd")
    private String campus_psd;

    public String getImg_code() {
        return img_code;
    }

    public void setImg_code(String img_code) {
        this.img_code = img_code;
    }

    public String getSession_code() {
        return session_code;
    }

    public void setSession_code(String session_code) {
        this.session_code = session_code;
    }

    public String getCampus_account() {
        return campus_account;
    }

    public void setCampus_account(String campus_account) {
        this.campus_account = campus_account;
    }

    public String getCampus_psd() {
        return campus_psd;
    }

    public void setCampus_psd(String campus_psd) {
        this.campus_psd = campus_psd;
    }
}